From: Florian Müllner Date: Fri, 22 Jun 2012 17:35:14 +0000 (+0200) Subject: remoteSearch: Use GIcon instead of icon name X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6417 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4d77eb94ffdc98838c07164eac2655459ddca03f;p=gnome-shell.git remoteSearch: Use GIcon instead of icon name Currently we pass an icon name for the 'icon' parameter of the RemoteSearchProvider constructor. In hindsight, using a GIcon instead will give us a bit more flexibility, so change it. https://bugzilla.gnome.org/show_bug.cgi?id=678816 --- diff --git a/js/ui/remoteSearch.js b/js/ui/remoteSearch.js index f0a40fe5a..6a03607ee 100644 --- a/js/ui/remoteSearch.js +++ b/js/ui/remoteSearch.js @@ -62,11 +62,12 @@ function loadRemoteSearchProvidersFromDir(dir, addProviderCallback) { let remoteProvider, title; try { let group = KEY_FILE_GROUP; - let icon = keyfile.get_string(group, 'Icon'); + let iconName = keyfile.get_string(group, 'Icon'); let busName = keyfile.get_string(group, 'BusName'); let objectPath = keyfile.get_string(group, 'ObjectPath'); title = keyfile.get_locale_string(group, 'Title', null); + let icon = new Gio.ThemedIcon({ name: iconName }); remoteProvider = new RemoteSearchProvider(title, icon, busName,